package restaurant.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.Timer;

public class CountDownTimer extends JFrame {

	private static final long serialVersionUID = 1L;

	public static void startTimer(int time){
    Timer t = new Timer(time, new ActionListener(){

	@Override
	public void actionPerformed(ActionEvent e) {
		// add actions here
		
	}
    });
    t.start();
}

	public static void main(String[] args) {
		JFrame clock = new CountDownTimer();
		clock.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		clock.setVisible(true);
	}
}